package com.zpark.entity;

import java.io.Serializable;
import java.util.List;

public class Menu implements Serializable{
    private Integer id;
    private String name;
    private String href;
    private String desc;
    private Integer parent_id;
    private List<Menu> menuList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getParent_id() {
        return parent_id;
    }

    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }

    public List<Menu> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<Menu> menuList) {
        this.menuList = menuList;
    }

    public Menu(Integer id, String name, String href, String desc, Integer parent_id, List<Menu> menuList) {
        this.id = id;
        this.name = name;
        this.href = href;
        this.desc = desc;
        this.parent_id = parent_id;
        this.menuList = menuList;
    }

    public Menu() {
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", href='" + href + '\'' +
                ", desc='" + desc + '\'' +
                ", parent_id=" + parent_id +
                ", menuList=" + menuList +
                '}';
    }
}
